import axios from 'axios';
import { loginreq, req } from './axiosFun';


/**
 * 文章管理
 **/
 // 获取文章
export const List = (page, pagesize) => { return req("get", "/api/article/?page=" + page + "&pagesize=" + pagesize)};
// 删除文章
export const Delete = (id) => { return req("post", "/api/article/delete", {id: id})};
// 添加文章
export const Add = (form) => { return req("post", "/api/article/add", JSON.stringify(form))};
// 更新文章
export const Update = (form) => { return req("post", "/api/article/update", JSON.stringify(form))};
